Repository navigation
Add Esperanto (eo) - #16320
Add Esperanto (eo)#16320xemuj wants to merge 8 commits into
Conversation
Esperanto is the only locale in the roster with no country: glibc ships it as plain eo.UTF-8 rather than eo_XX.UTF-8. Widen the locale gate in omarchy-locale-generate to accept a country-less locale so selecting it can generate the system locale. Add the four catalogs under default/i18n/eo/ with the same keys as the English source: menu, shell, cli and keybindings. Esperanto needs only the default one/other plural rule, so plural.jq is unchanged; CLDR gives it a comma decimal separator and Western digits, both recorded in the registry. Bump the language count the test asserts.
Three of the 51 manual chapters in Esperanto, and a checker that applies the same integrity rules as test/shell.d/i18n-test.sh: heading count, URLs, fenced code, relative link destinations, and protected inline spans, plus a check that the prose is actually translated rather than copied from English. REVIEW.md lists every translated catalog string next to its English source, grouped by file, with the conventions already applied and the places a native speaker should look hardest. The remaining manual chapters are left to the translation sync workflow.
[Medium impact] The PR appears safe to merge, with the previously reported English-manual fallback remaining a non-blocking issue. Findings
SummaryAdds Esperanto as Omarchy’s 51st language, with four catalogs, three manual chapters, and support for generating a locale without a country code.
Reviews (6) · Last reviewed commit: "Address review: Esperanto wording fixes,..." · Reviewed by Greptile |
Greptile review on omacom#16320. The sudo grant named every registry code as a whole argument, so eo was missing from etc/sudoers.d/omarchy-locale-generate and picking Esperanto would have prompted for a password. locale-sudoers-test.sh keeps that list equal to locales.json, and now covers eo. Record the eo section of translation-manifest.json so the sync workflow does not treat the contributed catalogs as pending and overwrite them: `i18n-sync.py manifest --locales eo` records a hash per translated unit, leaving only the 48 unwritten manual chapters in the queue. Four translation corrections: - Shutdown is power-off, not turn-on. `Ŝalti` ("turn on") becomes `Malŝalti` in system.shutdown, and the three CLI strings that describe shutting down follow. - setup.reset opens the factory-reset command rather than restarting, so it now says so. - install.windows and remove.windows manage the Windows VM, a Microsoft product name the brief requires leaving unchanged, not desktop windows. Also make --quiet in manual/eo/check.py silence its diagnostics without skipping the prose check, so a copied English chapter still fails the quiet run.
# Conflicts: # bin/omarchy-locale-generate # default/agents/skills/omarchy-app/SKILL.md # etc/sudoers.d/omarchy-locale-generate # test/shell.d/i18n-test.sh
| "decimal": ",", | ||
| "zeroDigit": "0" | ||
| }, |
There was a problem hiding this comment.
The new eo entry has no site, so omarchy-launch-manual opens the English manual after the user selects Esperanto. The language guide requires every added language to have its site. Add the Esperanto site before merging to satisfy that requirement.
File Used: docs/i18n.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Added "site": "https://omarchy.org/" in e4514db. eo.omarchy.org does not exist in DNS yet (NXDOMAIN), so pointing to https://omarchy.org/ keeps locales.json complete without breaking Learn > Omarchy; once omarchy-site provisions eo.omarchy.org, it can be swapped there.
|
Updated with A quick question for maintainers regarding the 50-language cut-off mentioned in omacom/omarchy-site#592:
|
Add Esperanto (
eo)Omarchy now ships in 51 languages.
Esperanto is the one language in the roster with no country, which makes it the first to need a code change rather than just catalogs. glibc ships it as plain
eo.UTF-8, noteo_XX.UTF-8, and/usr/share/i18n/SUPPORTEDhas it aseo UTF-8:bin/omarchy-locale-generaterejected that with^[a-z]{2,3}_[A-Z]{2}\.UTF-8$, so selecting Esperanto could never have generated its system locale. The country part is now optional:The registry entry takes
formatLocale: "eo"andlocale: "eo.UTF-8", with a comma decimal separator and Western digits, per CLDR. Nodirectionkey: Esperanto is left-to-right.What is translated
All four catalogs under
default/i18n/eo/, with keys identical to the English source:menu.jsonshell.jsoncli.jsonkeybindings.jsonThree manual chapters (
01,02,03) are translated too; the rest are left to the sync workflow.What needed no change
Plurals. CLDR gives Esperanto only
one(n = 1) andother, which is the existingelsebranch inplural.jq, so that file is untouched.plural_pickreturns1 memorigo/5 memorigoj.Numbers. The registry's
decimalandzeroDigitare set from CLDR, soomarchy-i18n --number 13.1writes13,1.Conventions
Left in English on purpose: brand and product names (Omarchy, Hyprland, Neovim, Firefox, Steam, Rust…), technical tokens (DNS, DHCP, SSH, AUR, TUI, GPU), commands, paths, URLs, key names. Every
%1/%2placeholder is preserved, order sometimes changed for Esperanto word order.Menu labels read as infinitives (
Ŝalti,Forigi,Instali), which is the usual Esperanto convention for menu items.Verification
This includes
every registry locale exists in glibc SUPPORTED, which is the assertion that catches a badlocalevalue.manual/eo/check.pyapplies the same integrity rules as the test suite to the manual (heading count, URLs, fenced code, relative links, protected inline spans) and confirms the prose is translated rather than copied.I18N_STRICT=1still fails onda/menu.json; that failure is present on a clean tree and unrelated to this change.For reviewers
default/i18n/eo/REVIEW.mdlists all 1,213 translated strings beside their English source, the conventions applied, and the six things a native speaker should check hardest.default/i18n/eo/build-review.pyregenerates it.Three open questions are flagged there, the main one being that Esperanto has no settled UI convention for a Setup menu —
setupis translated as Agordo (singular), where some Esperanto localisation guides prefer Agordoj or Konfigurado.Also worth confirming on a real install: the
clock.*Qt date patterns were left in English because the shell hands them straight toQt.locale(formatLocale). Esperanto month names should localise throughQt.locale("eo"), but that has not been checked on-device yet.